#include "lendconform.h"
#include "ui_lendconform.h"

#include <QLabel>

LendConform::LendConform(QString name, int num, QWidget *parent) :
    QWidget(parent),
    ui(new Ui::LendConform)
{
    ui->setupUi(this);

    this->setAttribute(Qt::WA_StyledBackground, true);
    this->setObjectName("widget");
    this->setStyleSheet("#widget{background-image: url(:/res/beijing.jpg);}");

    ui->label->setText(QString("借阅%1将扣除%2积分确定借阅？").arg(name).arg(num));
}

LendConform::~LendConform()
{
    delete ui;
}

void LendConform::on_pushButton_clicked()
{
    emit confirm();
    this->close();
}

void LendConform::on_pushButton_2_clicked()
{
    this->close();
}
